package com.neusoft.neu24.nep.mapper;

import com.neusoft.neu24.nep.entity.Member;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * MemberMapper Member接口
 *
 * @author Administrator
 * @version 2024/05/24 15:26
 **/
//   @Mapper ：MyBatis框架将MemberMapper 和MemberMapper.xml文件整合，形成MemberMapper 的实现类
//    Mapper接口中所有的方法名必须是唯一的
//    载人到spring框架
@Mapper
public interface MemberMapper {
    List<Member> selectAll();
    int addMember(Member member);
    Member selectByLogid(String logid);
    int selectCountByLogid(@Param("logid") String logid);

    int selectCountByTel(@Param("tel") String tel);
    int  addMemberWithTelSmsCode( @Param("tel") String tel,@Param("smscode")  String  smscode );

    Member selectMemberByTelAndSmsCode( @Param("tel") String tel,@Param("smscode")   String smscode, @Param("now")  Date now);

    int modMemberDsql(Member member);
}
